Repository navigation
docs(ai): keyless auto-pick, --agent AI mode, an isolated claude -p and the Ollama endpoint (forge-cli#850) - #204
Merged
Conversation
…nd the Ollama endpoint (forge-cli#850) forge-cli #850 (merged as 28a1f2e2, not yet in a release) changed how forge picks and calls an LLM. llm-providers.md gains three sections: the non-interactive pick when nothing is configured, how forge runs claude -p, and where Ollama calls go. The forge, ai, doctor, litellm-backend, environment-variables, network-safety, production-troubleshooting and upgrading pages are matched to it, and the "Ollama is localhost only" claims are corrected. Every new claim carries the "On forge-cli main" marker and says what 0.28.0 did. Checked against forge-cli main 28a1f2e2 by running the CLI (clean HOME, null keyring, stub agent CLIs, the local Ollama), and against v0.28.0 for each "Through 0.28.0" sentence.
2 of 3 tasks
fas89
marked this pull request as ready for review
November 12, 2026 06:01
This was referenced Nov 12, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
forge-cli #850 changed how forge picks and calls an LLM, and its description promised this docs PR. #850 merged on 2026-11-12 as
28a1f2e2, so every new sentence carries the house marker On forge-climain, not yet in a release. Each one also says what 0.28.0 did, because the site still pins 0.28.0.Waits for: a review. Nothing else blocks it, since #850 is already merged. At the next forge-cli release, the pin-bump PR turns the markers into
(since X).Checked against: forge-cli
mainat28a1f2e2. That squash is byte-identical to #850's final headad913502. The brief namedfadbdbf5, but the two later commits (f27b6a40andad913502) touch only.secrets.baseline, litellm's endpoint-name list and one test, so no documented behaviour moved.The pages
advanced/llm-providers.mdhas three new sections:claude,codex,cursor-agent,kiro-clionPATH), the warning it logs, everything that blocks it, the base install, and interactive runs.CLAUDECODE, each feature-detected fromclaude --help. Also sign-in (settings-based auth must come from the shell) and the failure messages.OLLAMA_HOSTis parsed (ollama-python's_parse_host), local-only model discovery, and routing keeping a stated endpoint.The Ollama row and the
OLLAMA_HOSTrow no longer say "local addresses only".cli/forge.md: in headless agent mode, any AI flag selects AI mode. The page also coversforge.contract_written, the non-zero exit, and an example.--llm-endpointnow applies to routing calls too, and a pointer to the keyless pick is added.cli/ai.md:ai testprobes through the callfluid forgemakes. It showsendpoint: null/ "provider default", and the exit codes onmainare 3 for 401/403, 4 for an unknown model or a 404, and 5 for the rest. TheOLLAMA_HOSTnote now says where the localhost guard still applies (interactive Ollama setup).cli/doctor.md: "Provider default",coding-agent://<name>, agent readiness by CLI onPATH, the not-on-PATH message, and readiness without a terminal.advanced/litellm-backend.md,advanced/environment-variables.md: theOLLAMA_HOSTrow,FLUID_LLM_ENDPOINTfor routing,FLUID_COPILOT_AGENT_LOOPblocking the pick, and a pointer to the pick.advanced/production-troubleshooting.md: a coding agent that is not signed in.upgrading.md: On forge-climainsince 0.28.0, the five changes a script or CI job can notice.Borrow before build
Extended the pages that already own each surface; no new page. Linked the upstream sources #850 borrowed from:
subprocess_cli.py@3cf3446b;_parse_host@35d9667e;Validation
Gates, reproduced locally on Python 3.11 with
data-product-forge==0.28.0from pypi.org/simple.FORGE_CLI_CHANGELOGwas set to forge-cli main's CHANGELOG at28a1f2e2.check_cli_docs.py --version-only,check_cli_docs.py,check_providers.py,check_cli_docs.py --markers-onlyandgen_contract_reference.py --checkall pass.fluidinvocations. Every flag the new example shows exists in 0.28.0, so noflag_oracle_okentry is needed.npm ci && npm run docs:build && node scripts/check-dist-links.mjsis clean: 141,667 references, and every new anchor renders.lychee --offlineover CI's route mirror reports 0 errors. Every new external link returns 200.Claims, checked by a verifier agent that ran the CLI:
ai testexample's error code. All are fixed, and a re-check confirmed each fix.apiKeyHelper, or Bedrock or Vertex variables insettings.json) does not reach forge's calls. It follows from--setting-sources=: Anthropic's CLI reference and Agent SDK docs say an empty list loads no user, project or local settings, and #850's CHANGELOG says the same. Checking it live needs one of those setups and a paid call.Follow-ups (forge-cli, not this PR)
forge.contract_writtenis not emitted when--target-diris outside the current directory, because the receipt snapshot scansPath.cwd()(scan_rootincli/forge.py). Blank mode emits it for any target. The page states the condition.fluid ai test --endpointchecks model availability againstOLLAMA_HOSTorlocalhost:11434, not against the stated endpoint (0.28.0 too). The page states it.fluid ai setupprovider. #850 already lists this under "Not in this PR".fluid doctorsaysNot selectedwhere a forge run falls back togemini.fluid ai testcrashes ondetect_ollama_available(incli/ai.mdandadvanced/production-troubleshooting.md) is stale. 0.28.0 returnsai_test_no_provider, exit 2.